{% extends "threadedforum_base.html" %}

{% block content %}
    <form method="POST" action="">
        <table>
        {% if category %}
            <div class="category_title"><h1>{{category.title}}</h1></div>
            <div class="category_description">{{category.description}}</div>
        {% endif %}
        {{ form.as_table }}
        {% if admin_form %}
            {{ admin_form.as_table }}
        {% endif %}
        </table>
        {% if  %}
            <input type="submit" value="Update Category"/>
            <input type="submit" value="Preview" name='preview'/>
        {% else %}
            <input type="submit" value="Create Category"/>
            <input type="submit" value="Preview" name='preview'/>
        {% endif %}
    </form>
{% endblock %}